home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 338_01 / cglbdef.c < prev    next >
Text File  |  1980-01-01  |  1KB  |  49 lines

  1. #include        <stdio.h>
  2. #include        "c.h"
  3. #include        "expr.h"
  4. #include        "gen.h"
  5. /*
  6.  *    68000 C compiler
  7.  *
  8.  *    Copyright 1984, 1985, 1986 Matthew Brandt.
  9.  *  all commercial rights reserved.
  10.  *
  11.  *    This compiler is intended as an instructive tool for personal use. Any
  12.  *    use for profit without the written consent of the author is prohibited.
  13.  *
  14.  *    This compiler may be distributed freely for non-commercial use as long
  15.  *    as this notice stays intact. Please forward any enhancements or questions
  16.  *    to:
  17.  *
  18.  *        Matthew Brandt
  19.  *        Box 920337
  20.  *        Norcross, Ga 30092
  21.  */
  22.  
  23. /*      global definitions      */
  24.  
  25. FILE            *input = 0,
  26.                 *list = 0,
  27.                 *output = 0;
  28.  
  29. int             lineno = 0;
  30. int             nextlabel = 0;
  31. int             lastch = 0;
  32. int             lastst = 0;
  33. char            lastid[20] = "";
  34. char            laststr[MAX_STRLEN + 1] = "";
  35. long            ival = 0;
  36. double          rval = 0.0;
  37.  
  38. TABLE           gsyms = {0,0},
  39.                 lsyms = {0,0};
  40. SYM             *lasthead = NULL;
  41. struct slit     *strtab = 0;
  42. int             lc_static = 0;
  43. int             lc_auto = 0;
  44. struct snode    *bodyptr = 0;
  45. int             global_flag = 1;
  46. TABLE           defsyms = {0,0};
  47. int             save_mask = 0;          /* register save mask */
  48.  
  49.